libxl: fix gentypes call in Makefile
authorCédric Bosdonnat <cbosdonnat@suse.com>
Thu, 10 Nov 2016 16:46:00 +0000 (17:46 +0100)
committerWei Liu <wei.liu2@citrix.com>
Mon, 12 Dec 2016 09:43:56 +0000 (09:43 +0000)
commitcf41a5bf3bae94d736573ccb35f332d8979ae562
tree66a2554a0e47540187b58830d592dce7bed0bb46
parente28f1f42990e7cbcf18a117996e63f5a07e50ef2
libxl: fix gentypes call in Makefile

From the make documentation:

"$* [...] If the target is `dir/a.foo.b' and the target pattern is
`a.%.b' then the stem is `dir/foo'. In a static pattern rule, the
stem is part of the file name that matched the `%' in the target
pattern."

The rule generating the c types files from the idl ones is not
a static pattern rule, but rather an implicit rule. Thus the value
of $* is preceded by the file path, instead of only what matches %.

In order to get this fixed, drop the path using a $(notdir $*).

Signed-off-by: Cédric Bosdonnat <cbosdonnat@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/Makefile